function d = getDist(R, G, B)

d = sqrt(6)*sqrt(R^2-R*(G+B)+G^2-G*B+B^2)/3;

end